<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>mvvm - test</title>
</head>
<body>
  <div id="app">
    <div>
      <div>对象数据(a.b)：<span style="color: rgb(170, 18, 18)">{{a.b}}</span></div>
      <div>对象数据(c)：<span style="color: rgb(9, 187, 211);">{{c}}</span></div>
    </div>
    <input type="text" v-model="a.b" value="">
  </div>

  <script src='./observer.js'></script>
  <script>
    var myvue = new MyVue({
      el: '#app',
      data: {
        a: {
          b: 'Hello, world!'
        },
        c: 1,
        d: [5, 3, 2, 8] 
      }
    })
  </script>
</body>
</html>